package com.tutu.sys.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import com.tutu.sys.dao.SysFileMapper;
import com.tutu.sys.entity.SysFile;
import com.tutu.sys.service.ISysFileService;

@Service
public class SysFileServiceImpl implements ISysFileService {

	protected Logger logger = LoggerFactory.getLogger(getClass());
	
	@Resource
	private SysFileMapper sysFileMapper;
	
	@Override
	public SysFile getSysFileById(String fileId) {
		return this.sysFileMapper.selectByPrimaryKey(fileId);
	}

	@Override
	public void saveSysFile(SysFile sysFile) {
		this.sysFileMapper.insert(sysFile);
	}

	@Override
	public List<SysFile> getSysFiles(List<String> fileIds) {
		return this.sysFileMapper.getSysFiles(fileIds);
	}

}
